<template>
	<!-- 视频播放 -->
	<view>
		<div class="prism-player" id="J_prismPlayer"></div>

		<view>
			<yy-video-player 
					:auto-play="false" 
					:url="url" :poster="poster" 
					:danmu-list="danmuList" 
					:show-back-btn="true">
				</yy-video-player>
		</view>
		

		<!-- <xiaoVideoElement :src="src"></xiaoVideoElement> -->
	</view>
</template>

	
</script>

<script>
	import yyVideoPlayer from '@/components/yy-video-player.vue';
	import xiaoVideoElement from '@/components/xiao-video-component.vue';

	export default {
		data() {
			return {
				//url:'https://outin-fc119d8045e611ec863c00163e1c60dc.oss-cn-shanghai.aliyuncs.com/70e725bb5a5e4f529f15679b85d3ef0e/dac2d096eef5a501b4d2400df09b5d7c-ld.mp4?Expires=1637046705&OSSAccessKeyId=LTAIVVfYx6D0HeL2&Signature=Luk3ChOF5MmE2Vac4lYEoNhZ0Eo%3D',
				//视频
				url: '',
				//视频封面
				poster: '',
				danmuList: [],
				src: '../../static/mov_bbb.mp4',
				videoSourceId:''
			}
		},
		components: {
			yyVideoPlayer,
			xiaoVideoElement
		},
		methods: {

		},
		
		onLoad: function(option) {
			this.videoSourceId = option.videoId
			console.log(this.videoSourceId)
			// 观看视频
			// uni.request({
			// 	url: 'http://localhost:8099/vod/getPlay/' + this.videoSourceId,
			// 	method: 'Get',
			// 	success: (res) => {
			// 		console.log(res.data.data.url)
			// 		this.url = res.data.data.url
					
			// 	}
			// })
		},
	}
</script>

<style>


</style>
